ReadXMLValues
Definition:
ReadXMLValues(datasource, column, XPath)
Description:
Retrieve an XML string from a column in the current record for a specified Data Source and extract values from it using a specified XPath query.
Platforms:
All
Parameters:
datasource - required
Specifies the Data Source to be acted on – click here for the format of this parameter.
The Data Source can be a Custom View.
column - required
Name of the column within the Data Source containing the XML.
XPath - required
XPath query to be used to extract the required values. The query used should:
-
Assume the root element of the XML as the context for the XPath query.
-
Not contain any Namespace prefixes, these will be added automatically as appropriate.
Returns:
int
The number of values read.
Notes:
The results from this Method are stored on a per-Data Source basis until the Method is called again for that Data Source or the Data Source is refreshed.
Once the values have been stored by ReadXMLValues, you can retrieve them using the GetXMLValue Method, as long as they are not overwritten by a subsequent call to ReadXMLValues.
See also: